{{ define "recommendposts" }}
{{ if .RecommentPosts }}
<section class="fbox swidgets-wrap widget widget_text">
    <div class="swidget">
        <div class="sidebar-title-border">
            <h3 class="widget-title">推荐文章</h3>
        </div>
    </div>
    <div>
        {{ range .RecommentPosts }}
        <p><a href="/post/{{ .Id }}">{{ .Title }}</a></p>
        {{ end }}
    </div>
</section>
{{ end }}
{{ end }}